package com.hundsun.yr.universal.p2p.bean;

import java.io.Serializable;

import com.hundsun.yr.universal.library.data.HSSharedPreferences;



/**
 * @Title: UserRegister.java 
 * @Description: 注册信息
 * @date 2016-3-25 上午11:29:30 
 * @author:hejun.shen
 * @email:shenhj15971@hundsun.com 
 * @replace author:
 * @replace date:
 * @version V1.0   
 */
public class UserRegister extends ResponseBean implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 创建时间
	 */
	private long createTime;
	/**
	 * 是否开户
	 */
	private String ifAccount;
	/**
	 * 是否绑卡
	 */
	private String ifBindcard;
	/**
	 * 是否首次购买
	 */
	private String ifFirstbuy;
	/**
	 * 是否设置支付密码
	 */
	private String ifPaypwd;
	/**
	 * 实名    0-否  NO("0","否"), 1-是  YES("1","是"), 1-初始化  INIT("2","初始化"),
	 */
	private String ifRealname;
	/**
	 * 操作人
	 */
	private String operator;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 用户安全等级   1-低 LOW("1","低"), 2-中  MIDDLE("2","中") ,3-高  HIGN("3","高");
	 */
	private String secLevel;
	/**
	 * 注册状态
	 */
	private String status;
	/**
	 * 修改时间
	 */
	private long updateTime;
	/**
	 * 用户等级
	 */
	private String userLevel;
	/**
	 * 用户编号
	 */
	private String userNo;
	/**
	 * 用户类型
	 */
	private String userType;
	public long getCreateTime() {
		return createTime;
	}
	public void setCreateTime(long createTime) {
		this.createTime = createTime;
	}
	public String getIfAccount() {
		return ifAccount;
	}
	public void setIfAccount(String ifAccount) {
		this.ifAccount = ifAccount;
	}
	public String getIfBindcard() {
		return ifBindcard;
	}
	public void setIfBindcard(String ifBindcard) {
		this.ifBindcard = ifBindcard;
	}
	public String getIfFirstbuy() {
		return ifFirstbuy;
	}
	public void setIfFirstbuy(String ifFirstbuy) {
		this.ifFirstbuy = ifFirstbuy;
	}
	public String getIfPaypwd() {
		return ifPaypwd;
	}
	public void setIfPaypwd(String ifPaypwd) {
		this.ifPaypwd = ifPaypwd;
	}
	public String getIfRealname() {
		return ifRealname;
	}
	public void setIfRealname(String ifRealname) {
		this.ifRealname = ifRealname;
	}
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getSecLevel() {
		return secLevel;
	}
	public void setSecLevel(String secLevel) {
		this.secLevel = secLevel;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public long getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(long updateTime) {
		this.updateTime = updateTime;
	}
	public String getUserLevel() {
		return userLevel;
	}
	public void setUserLevel(String userLevel) {
		this.userLevel = userLevel;
	}
	public String getUserNo() {
		return userNo;
	}
	public void setUserNo(String userNo) {
		this.userNo = userNo;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	
	
	/**
	 * 存储本地信息
	 * @param sharedPreferences
	 */
	public void saveUserRegisterInfo(HSSharedPreferences sharedPreferences){
		
		sharedPreferences.putShareProf(UserInfo.IF_BINDCARD, ifBindcard);
		sharedPreferences.putShareProf(UserInfo.IF_ACCOUNT, ifAccount);
		sharedPreferences.putShareProf(UserInfo.IF_FIRSTBUY, ifFirstbuy);
		sharedPreferences.putShareProf(UserInfo.IF_PAYPWD, ifPaypwd);
		sharedPreferences.putShareProf(UserInfo.IF_REALNAME, ifRealname);
		sharedPreferences.putShareProf(UserInfo.USER_TYPE, userType);
		
	}

}
